/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package ga_checkpoint_3;

/**
 *
 * @author Asif Dipon, Harshal Joshi
 */
public class City {

    //the id/name of the city
    protected char id;
    //the x and y coordinates of the city.
    protected int xcor;
    protected int ycor;

    /**
     * Basic constructor
     * @param id    The id
     * @param x     The x coordinate
     * @param y     The y coordinate
     */
    public City(char id, int x, int y){
        this.id = id;
        this.xcor =  x;
        this.ycor = y;
    }

    /**
     * Getter for x coordinate
     * @return the x coordinate
     */
    public int getXcor() {
        return xcor;
    }

    /**
     * Setter for x coordinate
     */
    public void setXcor(int xcor) {
        this.xcor = xcor;
    }

    /**
     * Getter for y coordinate
     * @return the y coordinate
     */
    public int getYcor() {
        return ycor;
    }

    /**
     * setter for y coordinate
     */
    public void setYcor(int ycor) {
        this.ycor = ycor;
    }

    @Override
    public String toString() {
        return "" + id;
    }


}
